#!/bin/bash

# https://github.com/junegunn/vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
	    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

cp .vimrc $HOME/.vimrc

exit

sudo update-alternatives --config editor

# ================================

#set runtimepath^=$DIR/ctrlp.vim
#echo "
#call plug#begin('~/.vim/plugged')
#  Plug 'ctrlpvim/ctrlp.vim'
#  Plug 'preservim/nerdtree'
#  Plug 'neoclide/coc.nvim', {'branch': 'release'}
#call plug#end()
#" >> ~/.vimrc

DIR="$HOME/.vim/pack/plugins/start"
if [ ! -d $DIR ]; then
	mkdir -p $DIR
	git clone --depth=1 https://github.com/ctrlpvim/ctrlp.vim $DIR/ctrlp.vim
fi

